@{
    Layout = null;
}
@model Product;

<head>
    <link rel="stylesheet" href="~/css/Base.css">
</head>
<div>
    <table>
        @if (Model == null)
        {
            <tr hidden>
                <td>Id：</td>
                <td><input type="text" name="Id" value="0"></td>
            </tr>
            <tr>
                <td>商品名称：</td>
                <td><input type="text" name="ProductName"></td>

            </tr>
            <tr>
                <td>供应商名称：</td>
                <td><input type="text" name="Supplier"></td>
            </tr>
            <tr>
                <td>价格:</td>
                <td><input type="text" name="Price"></td>
            </tr>
            <tr>
                <td>库存数量：</td>
                <td><input type="text" name="Stock"></td>
            </tr>
            <tr>
                <td>备注：</td>
                <td><input type="text" name="Remarks"></td>
            </tr>
            <tr>
                <td><input type="button" id="btnSave" value="保存"></td>
                <td><input type="button" id="btnCencel" value="取消"></td>
            </tr>
        }
        else
        {
            <tr hidden>
                <td>Id：</td>
                <td><input type="text" name="Id" value="@Model.Id"></td>
            </tr>
            <tr>
                <td>商品名称：</td>
                <td><input type="text" name="ProductName" value="@Model.ProductName"></td>

            </tr>
            <tr>
                <td>供应商名称：</td>
                <td><input type="text" name="Supplier" value="@Model.Supplier"></td>
            </tr>
            <tr>
                <td>价格:</td>
                <td><input type="text" name="Price" value="@Model.Price"></td>
            </tr>
            <tr>
                <td>库存数量：</td>
                <td><input type="text" name="Stock" value="@Model.Stock"></td>
            </tr>
            <tr>
                <td>备注：</td>
                <td><input type="text" name="Remarks" value="@Model.Remarks"></td>
            </tr>
            <tr>
                <td><input type="button" id="btnSave" value="保存"></td>
                <td><input type="button" id="btnCencel" value="取消"></td>
            </tr>
        }
    </table>
</div>

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/Base.js"></script>